// @ts-nocheck
import { Navigate } from 'react-router-dom'
import Home from '../pages/Home';
import About from '../pages/About';
import Message from '../pages/Home/Message/index'
import News from '../pages/Home/News/index'
import Detail from '../pages/Home/Message/Detail'

// eslint-disable-next-line import/no-anonymous-default-export
export default [
  {
    path: '/home',
    element: <Home />,
    children: [
      {
        path: 'news',
        element: <News />
      },
      {
        path: 'message',
        element: <Message />,
        children: [
          {
            path: 'detail',
            element: <Detail />
          }
        ]
      },
    ]
  },
  {
    path: '/about',
    element: <About />
  },
  {
    path: '/',
    element: <Navigate to="/home" />
  }
]